package cn.java.sort;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {
    
	private static void listSort1() {
		List<Integer> list=new ArrayList<>();
		list.add(3);
		list.add(5);
		list.add(1);
		Collections.sort(list);
		System.out.println(list);
		
		System.out.println(list.toArray()[0]+"---"+list.toArray()[1]+"---"+list.toArray()[2]);
		
		
		Collections.reverse(list);
		System.out.println(list);
	}
	
	public static void main(String[] args) {
		//listSort1();
		String aa=",79";
		System.out.println(aa.substring(1));
		System.out.println(aa.contains(","));
		System.out.println(aa.split(",").length);
		
		String bb="78,98,68,38,38,98,38";
		System.out.println(bb.split(",").length);
	}
}
